package com.fxl.majiang.message.output;

import com.fxl.majiang.enums.TilesEnum;
import com.fxl.majiang.room.Player;
import com.fxl.majiang.room.TilesGroup;
import lombok.Data;

import java.util.List;

/**
 * @author fengxinglei
 * @date 2022/8/9 14:02
 * @description 用户自己补花提醒
 */
@Data
public class OutputSelfSupplementMsgData implements OutputMessageData{

    private static final long serialVersionUID = -5728876229941002559L;
    /**
     * 补到的牌
     */
    private List<TilesEnum> tiles;

    /**
     * 补完花之后拥有的手牌
     */
    private List<TilesEnum> ownedTiles;

    private List<TilesGroup> ownedHuaGroups;

    private boolean isSupplementWhenStart;

    public OutputSelfSupplementMsgData(List<TilesEnum> tiles, Player player,boolean isSupplementWhenStart) {
        this.tiles = tiles;
        this.ownedTiles = player.getOwnedTiles();
        this.ownedHuaGroups = player.getOwnedHuaTilesGroup();
        this.isSupplementWhenStart = isSupplementWhenStart;
    }
}
